#include "main.h"
using namespace std;

int main(int argc, char const *argv[])
{
	//Read Test Set
	vector<Rectangle> Rectangles = readConfigFile("Test_set.txt");

	//Record the index of the overlap rectangel
	set<int> error_index;
	scan_line(Rectangles,error_index);

	for(auto res: error_index){
		cout << "error_rectangle: " << Rectangles[res].x1 + 2 << ' ' ;
		cout << Rectangles[res].y1 + 2<< ' ' ;
		cout << Rectangles[res].x2 - 2<< ' ' ;
		cout << Rectangles[res].y2 - 2<< ' ' << endl << endl;
	}

	return 0;
}

